package io.github.shang11925;

public abstract class TimeDo implements Algorithn {
    public static void getTime(Algorithn algorithn) {
        long startTime = System.currentTimeMillis();

        algorithn.algorithm();

        long endTime = System.currentTimeMillis();
        long elapsedTime = endTime - startTime;
        System.out.println("time: " + elapsedTime);
    }

}
